package com.woniuxy.member.client;

import com.woniuxy.member.client.param.AddReservationParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "memberResevationManageClient",name="member",path="member")
public interface MemberResevationManageClient {

    @PostMapping("/addQueueNumber")
    public Result addQueueNumber(@RequestBody AddReservationParam addReservationParam);

    @DeleteMapping("/deleteReservation")
    public Result deleteReservation(@RequestParam("reservationId") Integer reservationId);

    @PostMapping("/addTakeNum")
    public Result addTakeNum(@RequestParam("tableTypeId")Integer tableTypeId);
}
